package com.exception;

/**
 * @Author WaveHi
 * @Date 16/8/2021 下午 5:09
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 测试Finally的执行情况
 */
public class TestFinally {

    public static void main(String[] args) {

        try {
            //获取测试数据
            int num1 = 12;
            int num2 = 0;
            int num3 = 3;

            //测试
            int result = num1 / num2;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {

            System.out.println("This is area under the jurisdiction of finally.");

        }

        System.out.println("Completed!");

    }

}
